/** @file               sw_lsocket.h
 *  @copyright          Copyright (C) 2006-2026 flyfish (tenggui_fu@126.com)
 *  @brief              This file is part of the swallow library
 *  @author             $Author: flyfish $
 *  @version            $Rev: 385 $
 *  @date               $Date: 2016-12-22 00:12:05 +0800 (周四, 22 12月 2016) $
 */
#ifndef __SW_LSOCKET_H__
#define __SW_LSOCKET_H__

#ifdef __cplusplus
extern "C" {
#endif

SW_API SW_RET SW_InitLSocketAPI(SW_VOID);
SW_API SW_RET SW_RunLSocketAPI(SW_VOID);
SW_API SW_RET SW_StopLSocketAPI(SW_VOID);
SW_API SW_RET SW_ExitLSocketAPI(SW_VOID);
SW_API SW_SOCKET SW_CreateLSocketServer(const SW_CHAR *pFileName, SW_UINT32 backLog, SW_BOOL nonBlock);
SW_API SW_SOCKET SW_WaitLSocketConnected(SW_SOCKET sd);
SW_API SW_SOCKET SW_ConnectLSocket(const SW_CHAR *pFileName);
SW_API SW_RET SW_DeleteLSocket(const SW_CHAR *pFileName);

#ifdef __cplusplus
}
#endif

#endif

